package com.example.his.api.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.his.api.db.pojo.OrderEntity;
import com.example.his.api.mis.controller.form.SearchOrderByPageForm;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface OrderDao extends BaseMapper<OrderEntity> {
    public HashMap searchFrontStatistic(int customerId);

    public boolean searchIllegalCountInDay(int customerId);

    public int closeOrder();

    public int myInsert(OrderEntity entity);

    public int updatePayment(Map param);

    public Integer searchCustomerId(String outTradeNo);

    public ArrayList<HashMap> searchFrontOrderByPage(Map param);
    public long searchFrontOrderCount(Map param);

    public String searchAlreadyRefund(int id);
    public HashMap searchRefundNeeded(Map param);
    public int updateOutRefundNo(Map param);

    public int updateRefundStatusByOutRefundNo(String outRefundNo);

    public ArrayList<HashMap> searchTimeoutRefund();
    public int updateRefundStatusById(int id);
    public int closeOrderById(Map param);

    List<HashMap> searchByPage(SearchOrderByPageForm form);

    public int deleteById(int id);

    Integer hasOwnSnapshot(@Param("customerId") Integer customerId, @Param("snapshotId") String snapshotId);

    public int updateStatus(Map param);

    public Integer hasOwnOrder(Map param);
    public HashMap searchOrderIsFinished(String uuid);
}




